<template>
  <div>
    <h2>我是count组件</h2>
    <p>价格1:{{price1 | priceFormat(4)}}</p>
    <p>价格2:{{price2 | priceFormat}}</p>
  </div>
</template>

<script>
export default {
  name: "Count",
  data() {
    return {
      price1:12,
      price2: 14.1,
      price3: 18.98
    };
  },
};
</script>

<style scoped >
  .count {
    background-color: red;
  }
</style>